package com.example.student.http;

/**
 * @描述: 响应码及响应信息
 * @创建人 guoyanlu
 * @创建时间 2016/11/14
 */

public class RespCodeMsgConstant {

    public final static String RESP_NO_NETWORK_MSG = "网络无连接,请检查网络设置!";
//    public final static String RESP_CONNECTION_TIMEOUT_MSG = "网络异常，请重试！";
    public final static String RESP_CONNECTION_TIMEOUT_MSG = "";
    public final static String RESP_RESPONSE_TIMEOUT_MSG = "请求响应失败,请重试!";
    public final static String RESP_CONTENT_EMPTY_MSG = "响应内容为空字符串,请重试!";
    public final static String RESP_NOT_JSON_MSG = "响应内容不是合法JSON格式,请重试!";
    public final static String RESP_NO_CODE_MSG = "响应code丢失,请重试!";
    public final static String RESP_NO_MSG_MSG = "响应msg丢失,请重试!";
    public final static String RESP_NO_PARAM_ERROR_LIST_MSG = "响应paramErrorList丢失,请重试!";
    public final static String RESP_NO_IMAGE_MSG = "找不到需要上传的图片";

    /*成功*/
    public final static String CODE_SUCCESS = "100";
//    public final static String CODE_SUCCESS_MSG = "响应成功";
    public final static String CODE_SUCCESS_MSG = "";

    /* 服务器处理异常*/
    public final static String CODE_SERVER_EXCEPTION = "101";
    public final static String CODE_SERVER_EXCEPTION_MSG = "服务器处理异常";

    /* 请求参数错误*/
    public final static String CODE_PARAM_ERROR = "102";
    public final static String CODE_PARAM_ERROR_MSG = "请求参数错误";

    /* 注册用户重复*/
    public final static String CODE_USER_REPEAT = "103";
    public final static String CODE_USER_REPEAT_MSG = "注册用户重复";

    /* 登录用户不存在*/
    public final static String CODE_USER_NOT_EXIST = "104";
    public final static String CODE_USER_NOT_EXIST_MSG = "登录用户不存在";

    /* 已售产品中未找到报台产品*/
    public final static String CODE_NOT_IN_SOLD_PRODUCTS = "105";
    public final static String CODE_NOT_IN_SOLD_PRODUCTS_MSG = "已售产品中未找到报台产品";

    /* 产品已被报台*/
    public final static String CODE_PRODUCT_IN_REPORT = "106";
    public final static String CODE_PRODUCT_IN_REPORT_MSG = "产品已被报台";

    /* 超过了修改的时限 */
    public final static String CODE_PRODUCT_OUT_UPDATE_TIME = "107";
    public final static String CODE_PRODUCT_OUT_UPDATE_TIME_MSG = "超过了修改的时限";

    /* 产品不唯一*/
    public final static String CODE_PRODUCT_NOT_ONLY = "108";
    public final static String CODE_PRODUCT_NOT_ONLY_MSG = "产品不唯一";

    /* 无此产品 */
    public final static String CODE_NO_PRODUCT = "109";
    public final static String CODE_NO_PRODUCT_MSG = "无此产品";


    /* json格式不合法 */
    public final static String CODE_JSON_FORMAT_ILLEGAL = "110";
    public final static String CODE_JSON_FORMAT_ILLEGAL_MSG = "json格式不合法";

    /* 用户密码不正确 */
    public final static String CODE_USER_PASSWORD_ERROR = "111";
    public final static String CODE_USER_PASSWORD_ERROR_MSG = "用户密码不正确";

    /* json内容不正确 */
    public final static String CODE_JSON_DETAIL_ERROR = "112";
    public final static String CODE_JSON_DETAIL_ERROR_MSG = "json内容不正确";

    /* 用户登录失效 */
    public final static String CODE_USER_LOGIN_FAIL = "113";
    public final static String CODE_USER_LOGIN_FAIL_MSG = "用户登录失效";

}
